﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Learn1
{
    public class UserInfo
    {
        public string Name { get; set; }
        public static void Modify(UserInfo obj)
        {
            obj.Name = DateTime.Now.ToString();
        }
    }

    public struct Point
    {
        public int X { get; set; }
        public static void Modify(Point obj)
        {
            obj.X = new Random().Next();
        }
    }
}
